package g11.model;

import java.io.Serializable;

public class WorkFor implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -20395999017594027L;

	private Integer doctorId;

	private Integer staffId;

	public int getDoctorId() {
		return doctorId;
	}

	public void setDoctorId(int doctorId) {
		this.doctorId = doctorId;
	}

	public int getStaffId() {
		return staffId;
	}

	public void setStaffId(int staffId) {
		this.staffId = staffId;
	}

	@Override
	public boolean equals(Object obj) {
		/*
		 * add by Fern
		 */
		WorkFor other = (WorkFor) obj;
		if ((this.staffId == other.staffId) && (this.doctorId==other.doctorId)) {
			return true;
		} else

			return false;
	}

	@Override
	public String toString() {
		return "WorkFor [doctorId=" + doctorId + ", staffId=" + staffId + "]";
	}

}
